/*
 * @Author: Jone XIn
 * @Date: 2022-01-12 19:27:28
 * @LastEditTime: 2022-01-12 19:40:59
 * @Description: 
 */
import { Tag, } from "antd";
const colorList = [
    "magenta",
    "red",
    "volcano",
    "orange",
    "gold",
    "lime",
    "green",
    "cyan",
    "blue",
    "purple",
    "geekblue",
]
const columns = [
    {
        title: 'uid',
        dataIndex: 'uid',
        key: 'uid',
    },
    {
        title: '帮会号',
        dataIndex: 'sync_id',
        key: 'sync_id',
    },
    {
        title: '帮会业务名称',
        dataIndex: 'project_name',
        key: 'project_name',
    },
    {
        title: '帮主',
        dataIndex: 'username',
        key: 'username',
    },
    {
        title: '帮会成员',
        key: 'menber_list',
        dataIndex: 'menber_list',
        render: tags => (
            <>
                {
                    tags ? tags.map(tag => {

                        return (
                            <Tag color={colorList[Math.floor(Math.random() * 11)]} key={tag.project_name}>
                                {tag.project_name}
                            </Tag>
                        );
                    }) : ''
                }
            </>
        ),
    },
    {
        title: '帮会创立时间',
        key: 'gen_time',
        dataIndex: 'gen_time',
    },
    {
        title: '帮会描述',
        key: 'remarks',
        dataIndex: 'remarks',
    }
];
export default columns;